<#import "../baseftl/page.ftl" as comm />
<#assign security=JspTaglibs["http://www.springframework.org/security/tags"] /> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>管理区域</title>
<link href="${base}/scripts/validate/jquery.validate.css" type="text/css" rel="stylesheet" />
<script src="${base}/scripts/validate/jquery.validate.js" type="text/javascript"></script>
<script src="${base}/scripts/validate/messages_cn.js" type="text/javascript"></script>
<script>
	$(document).ready(function(){
		$("#name").focus();
		$("#inputForm").validate();
	});
	
</script>
</head>

<body>
<h3><#if resource.id?default("") == "">创建<#else>修改</#if>资源</h3>
<form id="inputForm" action="${base}/system/resource/save.shtml" method="post">
<input type="hidden" name="resource.id" value="${resource.id?default("")}" />
<input type="hidden" name="resource.version" value="${resource.version?default("")}" />
<table class="inputView">
	<tr>
		<td>授权标志:</td>
		<td><input type="text" name="resource.name" size="40" value="${resource.name?default("")}" class="required"/></td>
	</tr>
	<tr>
		<td>授权名称:</td>
		<td><input type="text" name="resource.cnname" size="40" value="${resource.cnname?default("")}" class="required"/></td>
	</tr>
	<tr>
		<td>授权路径:</td>
		<td><input type="text" name="resource.path" size="40" value="${resource.path?default("")}" class="required"/></td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" value="提交" class="button"/>&nbsp; 
			<input type="button" value="取消" onclick="back();" class="button"/>
		</td>
	</tr>
</table>
</form>
</body>
</html>